import Home from '@/pages/Home';
import NotFound from '@/pages/NotFound';
import ReposManage from '@/pages/ReposManage';
import Base from '@/layout';

const routes = [
    {
        path: '/',
        element: <Base />,
        children: [
            {
                path: '/home',
                name: '首页',
                element: <Home />,
            },
            {
                path: '/repos-manage',
                name: '代码仓库管理',
                element: <ReposManage />,
            },
            {
                path: '/app-manage',
                name: '应用管理',
                element: <ReposManage />,
            },
            {
                path: '/app-deploy',
                name: '应用发布',
                element: <ReposManage />,
            },
            {
                path: '/offline_package',
                name: '离线包下载',
                element: <ReposManage />,
            },
        ],
    },
    {
        path: '*',
        element: <NotFound />,
    },
];

export default routes;
